automation: Use custom build jobs when extra config options are needed
authorMichal Orzel <michal.orzel@amd.com>
Mon, 26 Sep 2022 11:04:14 +0000 (13:04 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Mon, 26 Sep 2022 22:36:22 +0000 (15:36 -0700)
commitbd68a5f397537eb7ba6223546c1f4d47f078d3b2
treefa5cc2316794029867861fb43f8e8c8499f55ed5
parentbfd3e9945d1bc551ad11272c7fa752ff3d060149
automation: Use custom build jobs when extra config options are needed

Currently, all the arm64 defconfig build jobs, regardless of the
container used, end up building Xen with the extra config options
specified in the main build script (e.g. CONFIG_EXPERT,
CONFIG_STATIC_MEMORY). Because these options are only needed for
specific test jobs, the current behavior of the CI is incorrect
as we add the extra options to all the defconfig builds. This means
that on arm64 there is not a single job performing proper defconfig build.

To fix this issue, add custom build jobs each time there is a need for
building Xen with additional config options. Introduce EXTRA_XEN_CONFIG
variable to be used by these jobs to store the required options. This
variable will be then read by the main build script to modify the .config
file. This will also help users to understand what is needed to run specific
test.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
automation/gitlab-ci/build.yaml
automation/gitlab-ci/test.yaml
automation/scripts/build